#ifndef MAINWINDOW_H
#define MAINWINDOW_H


#include <QWidget>
#include <QFile>
#include <QTextStream>
#include <QLabel>
#include "poseestimation.h"
#include "facegeoestimation.h"

class GLWidget;

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
//    QSize sizeHint() const;

private slots:
    void setCurrentGlWidget();
    void rotateOneStep();
    void readFiducials();
    void test();
    void showPose();
    void renderToPBuffer();
    void updateDepth();
    void depthEstimation();

private:
 //   enum { NumRows = 2, NumColumns = 3 };

    QFile* logFile;
    QTextStream* logTextStream;

    GLWidget *glWidget;
    QLabel *imageQWidget;
    QWidget *currentGlWidget;
    PoseEstimation* poseEst;
    FaceGeoEstimation* pFaceGeoEst;
    QString bufferFileName;
    short currentImageIndex;
};

#endif // MAINWINDOW_H
